<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <script>
        let str = "hello";
        let res = Array.from(str);
        console.log(res);
        // let res1 = String(res);
        // let res1 = res.join("");
        // console.log(res1);
        var arr = [];

        for (var i = res.length - 1; i >= 0; i--) {
            console.log(res[i]);
            arr.push(res[i]);
        }
        console.log(arr);
    </script>
</body>

</html>